package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName DtuPushTypeEnum.java
 * @Description TODO
 * @createTime 2023年12月18日
 */
@Getter
@RequiredArgsConstructor
public enum WxTypeEnum {

    PUSH_0(1, "Alarm_equipment_fault"),
    PUSH_1(0, "Alarm_equipment_off"),
    PUSH_2(2, "Equipment_operation_report"),
    PUSH_3(3, "Service_expiration_reminder");


    private final int code;
    private final String name;


    public static WxTypeEnum getPushTypes(int code) {
        for (WxTypeEnum dtuPushTypeEnum : WxTypeEnum.values()) {
            if (dtuPushTypeEnum.getCode()==(code)) return dtuPushTypeEnum;
        }
        return null;
    }

}
